package com.song.JavaThread_day02.ch2_4;

public class Producer implements Runnable {
	
	private EventStorage eventStorage;
	
	
	
	public Producer(EventStorage eventStorage) {
		super();
		this.eventStorage = eventStorage;
	}



	public void run() {
		for(int i=0; i<100 ;i++)
			eventStorage.set();
		
	}

}
